home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 June: Reference Library / Dev.CD Jun 96 RL / Dev.CD Jun 96 RL.toast / What's New? / Development Kits / Apple Game Sprockets DR1 / Examples / SoundSprocketTest / TS3Utils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-24  |  1.4 KB  |  83 lines  |  [TEXT/CWIE]

  1. /*
  2.  *    File:        TS3Utils.h
  3.  *    Author:        Dan Venolia
  4.  *
  5.  *    Copyright © 1996 Apple Computer, Inc.
  6.  */
  7.  
  8. #ifndef __TS3Utils__
  9. #define __TS3Utils__
  10.  
  11. #include <Dialogs.h>
  12. #include <Types.h>
  13.  
  14. #include <QD3D.h>
  15.  
  16.  
  17. void Utils_Init(
  18.     void);
  19.  
  20. void Utils_Exit(
  21.     void);
  22.  
  23. float Utils_Interval(
  24.     const UnsignedWide*    inPrevTime,
  25.     const UnsignedWide*    inCurrTime);
  26.  
  27. UserItemUPP Utils_GetOKUserItemProc(
  28.     void);
  29.  
  30. void Utils_SetStr255Field(
  31.     DialogPtr            inDialog,
  32.     short                inItem,
  33.     ConstStr255Param    inValue,
  34.     Boolean                inHasValue);
  35.  
  36. Boolean Utils_GetStr255Field(
  37.     DialogPtr            inDialog,
  38.     short                inItem,
  39.     Str255                outValue,
  40.     Boolean*            outHasValue);
  41.  
  42. void Utils_SetUInt32Field(
  43.     DialogPtr            inDialog,
  44.     short                inItem,
  45.     UInt32                inValue,
  46.     Boolean                inHasValue);
  47.  
  48. Boolean Utils_GetUInt32Field(
  49.     DialogPtr            inDialog,
  50.     short                inItem,
  51.     UInt32*                outValue,
  52.     Boolean*            outHasValue,
  53.     UInt32                inMin,
  54.     UInt32                inMax);
  55.  
  56. void Utils_SetFloatField(
  57.     DialogPtr            inDialog,
  58.     short                inItem,
  59.     float                inValue,
  60.     Boolean                inHasValue);
  61.  
  62. Boolean Utils_GetFloatField(
  63.     DialogPtr            inDialog,
  64.     short                inItem,
  65.     float*                outValue,
  66.     Boolean*            outHasValue,
  67.     float                inMin,
  68.     float                inMax);
  69.  
  70. void Utils_SetVector3DField(
  71.     DialogPtr            inDialog,
  72.     short                inItem,
  73.     const TQ3Vector3D*    inValue,
  74.     Boolean                inHasValue);
  75.  
  76. Boolean Utils_GetVector3DField(
  77.     DialogPtr            inDialog,
  78.     short                inItem,
  79.     TQ3Vector3D*        outValue,
  80.     Boolean*            outHasValue);
  81.  
  82.  
  83. #endif /* __TS3Utils__ */